<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%String path=request.getContextPath();%>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加员工</title>
    <link type="text/css" rel="stylesheet" href="<%=path%>admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="css/style.css"/>
</head>
<body>
<div class="main_box">
    <h2><span></span>添加评论</h2>
    <div class="cont_box">
        <form action="${pageContext.request.contextPath}/admin/findByIdCom" method="post">
        <ul class="addpro_box">
        <li>
            <label>请选择订单号：</label>
            <select name="id">
                <option value="">请选择您的订单号</option>
                <c:forEach items="${all}" var="all">
                <option value="${all.d_Comment_number}">${all.d_Comment_number}</option>
                </c:forEach>
<%--                <option value="2">财务</option>--%>
<%--                <option value="3">洗车工</option>--%>
            </select>
            <div class="probtn_box clearfix">
                <input type="submit" value="确认选择" class="btn blue_btn"/>
            </div>
        </li>
        </ul>
        </form>
        <form action="${pageContext.request.contextPath}/admin/addCom" method="post">
            <ul class="addpro_box">
                <li>
                    <label>订单编号：</label>
                    <input type="text" placeholder="请输订单编号" name="D_Comment_number" value="${byId.d_Comment_number}" data-msg-required="员工编号不能为空"/>
                </li>
                <li>
                    <label>评论内容：</label>
                    <input type="text" placeholder="请输入评论内容" name="D_comment_time" required data-rule-fullname="true" data-msg-required="员工姓名不能为空"/>
                </li>
                <li>
                    <label>评分：</label>
                    <input type="number" placeholder="请输入评分" name="D_scorce" required data-rule-mobile="true" data-msg-required="手机号不能为空"/>
                </li>
                <li>
                    <label>评价人：</label>
                    <input type="text" placeholder="请输入评论内容" value="${byId.e_meber_name}" name="D_reviewer" required data-rule-fullname="true" data-msg-required="员工姓名不能为空"/>
                </li>
<%--                <li>--%>
<%--                    <label>评价人：</label>--%>
<%--                    <div class="radio_box">--%>
<%--                        <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--                        <input type="radio" name="Z_sex" class="input_radio" value="1" required data-msg-required="性别不能为空"/><span>男</span>--%>
<%--                    </div>--%>
<%--                    <div class="radio_box">--%>
<%--                        <i class="fa fa-circle-thin fa-1x"></i>--%>
<%--                        <input type="radio" name="Z_sex" value="2" class="input_radio"/><span>女</span>--%>
<%--                    </div>--%>
<%--                </li>--%>
<%--                <li>--%>
<%--                    <label>岗位：</label>--%>
<%--                    <select name="Z_job_no" required data-msg-required="所属岗位不能为空">--%>
<%--                        <option value="">请选择所属岗位</option>--%>
<%--                        <option value="1">店长</option>--%>
<%--                        <option value="2">财务</option>--%>
<%--                        <option value="3">洗车工</option>--%>
<%--                    </select>--%>
<%--                </li>--%>
<%--                &lt;%&ndash;        <li>&ndash;%&gt;--%>
<%--                &lt;%&ndash;          <label>录入时间：</label>&ndash;%&gt;--%>
<%--                &lt;%&ndash;          <input type="text" placeholder="请输录入时间" name="Z_date"  data-msg-required="录入时间不能为空"/>&ndash;%&gt;--%>
<%--                &lt;%&ndash;        </li>&ndash;%&gt;--%>
<%--                <li>--%>
<%--                    <label>是否在岗：</label>--%>
<%--                    <select name="Z_state">--%>
<%--                        <option value="1">在岗</option>--%>
<%--                        <option value="2">离职</option>--%>
<%--                    </select>--%>
<%--                </li>--%>
            </ul>
            <div class="probtn_box clearfix">
                <input type="submit" value="添加员工" class="btn blue_btn"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="<%=path%>admin/car/js/jquery-2.2.1.min.js"></script>
<script src="<%=path%>admin/car/js/jquery.dataTables.min.js"></script>
<script src="<%=path%>admin/car/js/bootstrap-datepicker.js"></script>
<script src="<%=path%>admin/car/js/jquery.validate.min.js"></script>
<script src="<%=path%>admin/car/js/jquery.form.min.js"></script>
<script src="<%=path%>admin/car/js/other.js"></script>
<script>
    $(function(){
        $("body").other({formId:"#addstaff_form",formUrl:"${pageContext.request.contextPath}/admin/add"});//formUrl 表单请求地址
    });
</script>
</body>
</html>

